package com.neuedu.corejava.ch3.homework1;

public class RegularTriangle {

	public static void main(String[] args) {
		// 正三角形
		for (int x=0; x<5; x++) {
		 	for (int y=x+1; y<5; y++) {
		 	 	System.out.print(" ");
		 	}
		 	for (int z=0; z<=x; z++) {
		 	 	System.out.print("* ");
		 	}
		 		System.out.println();
		}
	}
}
